package cn.ms.neural.moduler.blackwhite.entity;

import java.util.List;

import cn.ms.neural.moduler.blackwhite.type.BlackWhiteType;

/**
 * The Black White List Entity.
 * 
 * @author lry
 */
public class BlackWhiteList {

	/**
	 * 黑/白名单ID
	 */
	private Long bwId=1l;
	
	/**
	 * 黑/白名单开关：默认为关闭
	 */
	private boolean enabled=false;
	/**
	 * 黑/白名单类型：默认为黑名单
	 */
	private BlackWhiteType blackWhiteType=BlackWhiteType.BLACK;
	/**
	 * 黑/白名单清单
	 */
	private List<String> data;
	
	/**
	 * 黑/白名单名称
	 */
	private String name=blackWhiteType.toString();
	/**
	 * 黑/白名单说明
	 */
	private String msg=String.format("This is %s list.", blackWhiteType.toString());
	
	public Long getBwId() {
		return bwId;
	}
	public void setBwId(Long bwId) {
		this.bwId = bwId;
	}
	public boolean isEnabled() {
		return enabled;
	}
	public void setEnabled(boolean enabled) {
		this.enabled = enabled;
	}
	public BlackWhiteType getBlackWhiteType() {
		return blackWhiteType;
	}
	public void setBlackWhiteType(BlackWhiteType blackWhiteType) {
		this.blackWhiteType = blackWhiteType;
	}
	public List<String> getData() {
		return data;
	}
	public void setData(List<String> data) {
		this.data = data;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getMsg() {
		return msg;
	}
	public void setMsg(String msg) {
		this.msg = msg;
	}
	
	@Override
	public String toString() {
		return "BlackWhiteList [bwId=" + bwId + ", enabled=" + enabled + ", blackWhiteType=" + blackWhiteType
				+ ", data=" + data + ", name=" + name + ", msg=" + msg + "]";
	}
	
}
